home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.4 KB | 31 lines | [TEXT/GEOL] |
- Item 1099544 29-Oct-90 11:18PST
-
- From: ENSIGN AnaMatrix, Jerry Sargent,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Trouble Dismissing
-
- I have a problem I hope someone can help me with.
-
- I have a created a TDialogView in a window which displays field information
- from a database file. This TDialogView has a subview which is a TPicture
- labeled "Cancel". If I click the mouse on the Cancel picture, my
- TDialogView.DoChoice method calls the Cancel method which will delete the
- displayed record in the database. If there is a next record in the database the
- information is displayed. If there is not a next record, I want to close the
- window. I have been calling GetWindow.Close from whithin the Cancel method when
- this condition happens, but I get an error in the MacApp Debug Window called
- from FailNonObject telling me that the handle has been freed. I snooped arround
- and I think that when I clicked on the picture, the method TControl.TrackMouse
- was called, and it called TDialogView.DoChoice . When I close and free my
- window from whithin the Cancel method (which frees the Cancel Picture) the
- TControl.TrackMouse method can't finish because it's not a valid object. What
- can I do???
-
- If you have any suggestions, please cc your response to ENSIGN as I am not
- recieving daily TECH$'s. Thanks,
-
- Ken Auton
-
-